package com.wkbb.common.enums;

public enum ImRoleIdentifyEnum {
    /**
     * 群成员
     */
    IMMEMBER((short)0,"群成员"),
    /**
     * 群管理
     */
    IMMANAGE((short)1,"群管理"),
    /**
     * 群主
     */
    IMGROUPOWNER((short)2,"群主");

    private ImRoleIdentifyEnum(short value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Short value;

    private String desc;

    public Short getValue() {
        return this.value;
    }

    public void setValue(Short value) {
        this.value = value;
    }

    public String getDesc() {
        return this.desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDesc(Integer value) {
        for (ImRoleIdentifyEnum imRoleIdentifyEnum : ImRoleIdentifyEnum.values()) {
            if (imRoleIdentifyEnum.getValue().intValue() == value.intValue()) {
                return imRoleIdentifyEnum.getDesc();
            }
        }
        return null;
    }
}
